#ifndef KEYBOARD_H
#define KEYBOARD_H

#define ReadIO_Key1 GPIO_Read_Status(GPIOA0,IO_Key1) //低电平有效
#define ReadIO_Key2 GPIO_Read_Status(GPIOA0,IO_Key2)

#include "stdint.h"

typedef struct
{
    uint8_t state_keyled;
    uint8_t once1:1;   
    uint8_t once2:1;   
    uint8_t once3:1;   
}_key_param;

typedef enum
{
    PSet_0 = 1,
    PSet_1 = 2,
    PSet_2 = 3,
    PSet_3 = 4,
    PSet_4 = 5,
    PSet_5 = 6,
    PSet_6 = 7,
    PSet_7 = 8,
}PSet_E;


extern uint8_t key_mset_state;
extern uint8_t key_ONOFF;
extern _key_param key_param;
extern uint16_t Keyboard_Show_Count;
extern uint16_t Keyboard1_Show_Count;
extern uint16_t PR_temp;
extern uint16_t pro_Show_Count;
extern uint8_t pro_flash;

void keyboard_delay15ms(void);
void Key_init(void);
void Key_Clock(void);
void KeyDetection(void);

#endif
